package cate.common.table.pvp.eliterace.sheet;

import cate.common.table.ESheet;
import cate.common.table.pvp.eliterace.row.EliteRaceRewardRow;

public class EliteRaceRewardSheet extends ESheet<EliteRaceRewardRow> {
    @Override
    public String getSheetName() {
        return "冠军赛排行榜奖励";
    }

    public String getReward(int rankNo) {
        for (EliteRaceRewardRow row : this.getList()) {
            if (rankNo >= row.begin && rankNo <= row.end) {
                return row.rewardStr;
            }
        }
        return null;
    }
}
